package datastructure.recursion;

public class PrintNumber {
	
	static int printNumber(int n) {
		if(n == 1) {
			System.out.print(1);
			return 1;
		} else {
			System.out.print(n+ " ");
			return printNumber(n-1);
		}		
	}
	
	
	public static void main(String[] args) {
		printNumber(20);		
	}
	

}
